/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ricm4.ar.nio.chat;

import java.nio.channels.SocketChannel;
import ricm4.ar.nio.nioEngine.I_NioEngine;
import ricm4.ar.nio.nioEngine.I_RecvMsgHandler;

/**
 *
 * @author fx
 */
public class ChatClient implements I_ChatClient, I_RecvMsgHandler {

	private ChatGUI gui;
	private I_NioEngine nioEngine;
	
	public ChatClient(I_NioEngine nioEngine){
		this.nioEngine=nioEngine;
		gui=new ChatGUI();
		gui.setHandler(this);
	}
	
	@Override
	public void register(String clientName) throws ChatException {
		//todo
	}

	@Override
	public void leave() throws ChatException {
		//todo
	}

	@Override
	public void who() throws ChatException {
		//todo
	}

	@Override
	public void sendMsg(String msg) throws ChatException {
		//todo
	}

	@Override
	public void quit() throws ChatException {
		//todo
	}

	@Override
	public void receivedCB(byte[] data, SocketChannel socketChannel) {
		//todo
	}
	
}
